<include file="Public:pageHeader"/>
<link rel=" stylesheet" type="text/css" href="_STATIC_/css/member.css" />
<!--主区域-->
<div class="mainBox on">
    <div class="my-page">
        <div class="wrapper"">
        <div class="my_p">
            <include file="Member:memberLeft"/>
            <div class="my_form">
                <p class="m_p1">当前位置：代理管理</p>
                <div class="line"></div>
                <button class="table-top-btn" id="addagent">添加代理</button>
                <table class="table">
                    <tr>
                        <th class="table-title">代理编号</th>
                        <th class="table-title" style="width:110px">账户名称</th>
                        <th class="table-title" style="width:110px">账户手机号</th>
                        <!-- <th class="table-title">实名状态</th> -->
                        <!-- <th class="table-title">加价金额</th> -->
                        <th class="table-title" style="width:110px">上架商标量</th>
                        <th class="table-title">是否禁用</th>
                        <th class="table-title" style="width:160px">注册时间</th>
                        <th class="table-title">操作</th>
                    </tr>
                    <tbody>
                    <volist name="agentusers" id="vo" key="k">
                        <tr <?php if ( ( $k % 2) != 0 ) echo 'style="background: #F7F9FA"'; ?> >
                            <td class="table-content">{$vo.agent_sn}</td>
                            <td class="table-content" title="{$vo.user_name}">{$vo.user_name}</td>
                            <td class="table-content">{$vo.user_mobile}</td>
                            <!--
                            <td class="table-content">
                                <eq name="vo.id_card_check_status" value="0">未实名</eq>
                                <eq name="vo.id_card_check_status" value="1">待审核</eq>
                                <eq name="vo.id_card_check_status" value="2">已实名</eq>
                                <eq name="vo.id_card_check_status" value="3">已拒绝</eq>
                            </td>
                            -->
                            <!-- <td class="table-content">{$vo.plus_price}</td> -->
                            <td class="table-content">
                                {$vo.trademarkCount}
                            </td>
                            <td class="table-content">
                                <eq name="vo.disabled_status" value="0">正常</eq>
                                <eq name="vo.disabled_status" value="1">已禁用</eq>
                            </td>
                            <td class="table-content">{$vo.created_at}</td>
                            <td class="table-content">
                                <eq name="vo.id_card_check_status" value = "1">
                                    <button class="btn checkidcardstatus" unionsn="{$vo.agent_sn}_{$vo.admin_id}" card-zheng="{$vo.id_card_front_image}" card-fan="{$vo.id_card_back_image}">认证审核</button>
                                </eq>
                                <div style="height: 5px"></div>
                                <button class="btn changeaccountstatus" unionsn="{$vo.agent_sn}_{$vo.admin_id}_{$vo.disabled_status}" agent-sn="{$vo.agent_sn}" disabled_status="{$vo.disabled_status}">
                                    <eq name="vo.disabled_status" value="0">账户禁用</eq>
                                    <eq name="vo.disabled_status" value="1">账户启用</eq>
                                </button>
                                <eq name="vo.resetpwd" value = "1">
                                    <div style="height: 5px"></div>
                                    <button class="btn resetagentuserpwd" unionsn="{$vo.agent_sn}_{$vo.admin_id}" agent-sn="{$vo.agent_sn}">重置密码</button>
                                </eq>
                                <eq name="member.role_id" value="1">
                                    <div style="height: 5px"></div>
                                    <button class="btn delagentuser" unionsn="{$vo.agent_sn}_{$vo.admin_id}" agent-sn="{$vo.agent_sn}">删除账户</button>
                                </eq>
                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</div>
<!-- 添加代理遮罩层 -->
<div class="my_mengceng addagentBox">
    <div class="shuru">
        <img src="_STATIC_/img/close.png" alt="" class="my_close cancelAddagentBox">
        <p class="my_p1">添加代理账户</p>
        <p class="my_p2">用户名</p>
        <div class="m_p3">
            <input type="text" id="user_name" placeholder="请输入用户名" style="width: 321px;height: 40px;padding-left: 20px;">
        </div>
        <p class="my_p2">手机号码</p>
        <div class="m_p3">
            <input type="text" id="user_mobile" placeholder="请输入手机号码" style="width: 321px;height: 40px;padding-left: 20px;">
        </div>
        <ul class="my_btn">
            <li class="b1 cancelAddagentBox">取消</li>
            <li class="on b2" id="addAgentBtn">确定</li>
        </ul>
    </div>
</div>
<!-- 审核代理认证资料遮罩层 -->
<div class="my_mengceng idCardCheckBox">
    <div class="shuru">
        <img src="_STATIC_/img/close.png" alt="" class="my_close cancelIdCardCheckBox">
        <p class="my_p1">代理认证审核</p>
        <p class="my_p2" style="height:auto">
            <a id="idCardZheng" href="javascripi:void(0);" target="_blank" title="点击查看大图【正面】">
                <img id="idCardZhengImg" src="#" style="width:100px; height: 100px">
            </a>
            <a id="idCardFan" href="javascripi:void(0);" target="_blank" title="点击查看大图【反面】">
                <img id="idCardFanImg" src="#" style="width:100px; height: 100px">
            </a>
        </p>
        <div class="m_p3">
            <input type="text" id="check_remark" placeholder="如果不通过，请输入拒绝原因" style="width: 321px;height: 40px;padding-left: 20px;">
        </div>
        <ul class="my_btn">
            <input type="hidden" id="idCardCheckUnionsn" value="">
            <li class="b1 cancelIdCardCheckBox">取消</li>
            <li class="on b2 subIdCardCheckBtn" id="2">通过</li>
            <li class="on b2 subIdCardCheckBtn" id="3">不通过</li>
        </ul>
    </div>
</div>
<!--底部区域-->
<include file="Public:pageFooter" />
</body>
</html>
<script type="text/javascript" src="_STATIC_/js/member-agentusers.js?v={$staticVersion}" ></script>